package com.lock.proxied;

import com.lock.annotation.ZKLock;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/7/17.
 */
@Service
public class UserServer implements UserInterface{
    private static int i;

    @Override
    @ZKLock
    public void add() {
        i++;
        System.out.println("执行次数为======="+i);
    }
}
